<!-- 主页内容开始 -->

<!-- 顶部幻灯片开始 -->
 <div id='banner_slider' class="am-slider am-slider-a1">
  <ul class="am-slides">
	<?php query_posts('post_type=sliders&posts_per_page=5'); while ( have_posts() ) : the_post(); ?>
		<li><a href="<?php the_permalink() ?>"><?php the_post_thumbnail('full'); ?></a></li>
	<?php endwhile; ?>
  </ul>
</div>
<!-- 顶部幻灯片结束-->

<!-- 基础栏目开始 -->
<div class="column column1">
	<div class="nav">
		<div class="am-g am-g-fixed">
			<div class="am-u-md-4"><a href="<?php echo site_url('?page_id=4'); ?>"><span class="title">About</span>关于华亚<span class="am-icon-plus am-fr"></span></a></div>
			<div class="am-u-md-4"><a href="#"><span class="title">Star products</span>明星产品<span class="am-icon-plus am-fr"></span></a></div>
			<div class="am-u-md-4"><a href="<?php echo site_url('?news=notice'); ?>"><span class="title">News</span>最新公告<span class="am-icon-plus am-fr"></span></a></div>
		</div>
	</div>
	<div class="cont am-g am-g-fixed">
		<div class="am-u-md-4 About">
			<a href="<?php echo site_url('?page_id=4'); ?>" class="am-fl img"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/brandlogo.jpg"></a>
			<div class="text am-fl">猕猴桃专业合作社联合社是在区召下，由万州15家猕猴桃种植生产企业及专业合作社共同成立的。其主要工作是组织采购供应成员所需生产用品....</div>
		</div>
		<div class="am-u-md-4 products">
			<?php query_posts('products_class=mignxing&posts_per_page=2'); while ( have_posts() ) : the_post(); ?>
				<div class="am-u-md-6"><a href="<?php $buy_link = get_post_meta($post->ID, "buy_link",true);if($buy_link){echo $buy_link;}else{the_permalink();}?>" target="_blank	"><?php the_post_thumbnail('post-thumbnail-141-105'); ?></a></div>
			<?php endwhile; ?>
		</div>
		<div class="am-u-md-4 News">
			<ul class="new_list">
				<?php query_posts('news=notice&posts_per_page=5'); while ( have_posts() ) : the_post(); ?>
					<li><a href="<?php the_permalink() ?>"><span class="text"><?php the_title(); ?></span><span class="time am-fr"><?php the_time('Y-m-d'); ?></span></a></li>
				<?php endwhile; ?>
			</ul>
		</div>
	</div>

</div>
<div class="column column2">
	<div class="am-g am-panel am-g-fixed">
		<div class="am-panel-hd"><a href="#">产品中心</a><span class="am-icon-plus am-fr"></span></div>
		<div class="am-panel-bd">
			<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider='{&quot;animation&quot;:&quot;slide&quot;,&quot;animationLoop&quot;:false,&quot;slideshow&quot;: false,&quot;itemWidth&quot;:242,&quot;itemMargin&quot;:0,&quot;move&quot;:1}' >
				<ul class="am-slides">
					<?php query_posts('post_type=products&posts_per_page=10'); while ( have_posts() ) : the_post(); ?>
						<li><a href="<?php $buy_link = get_post_meta($post->ID, "buy_link",true);if($buy_link){echo $buy_link;}else{the_permalink();}?>" target="_blank	"><?php the_post_thumbnail('post-thumbnail-220-153'); ?></a></li>
					<?php endwhile; ?>
				</ul>
			</div>	
		</div>
	</div>
</div>
<div class="column column3">
	<div class="am-g am-g-fixed">
		<div class="am-panel am-u-md-4">
		  <div class="am-panel-hd"><a href="<?php echo site_url('?news=company'); ?>">公司新闻</a><span class="am-icon-plus am-fr"></span></div>
		  <div class="am-panel-bd">
			<ul class="new_list">
				<?php query_posts('news=company&posts_per_page=5'); while ( have_posts() ) : the_post(); ?>
					<li><a href="<?php the_permalink() ?>"><span class="text"><?php the_title(); ?></span><span class="time am-fr"><?php the_time('Y-m-d'); ?></span></a></li>
				<?php endwhile; ?>
			</ul>
		  </div>
		</div>
		<div class="am-panel am-u-md-4">
		  <div class="am-panel-hd"><a href="<?php echo site_url('?news=industry'); ?>">行业新闻</a><span class="am-icon-plus am-fr"></span></div>
		  <div class="am-panel-bd">
			<ul class="new_list">
				<?php query_posts('news=industry&posts_per_page=5'); while ( have_posts() ) : the_post(); ?>
					<li><a href="<?php the_permalink() ?>"><span class="text"><?php the_title(); ?></span><span class="time am-fr"><?php the_time('Y-m-d'); ?></span></a></li>
				<?php endwhile; ?>
			</ul>
		  </div>
		</div>
		<div class="am-panel am-u-md-4">
		  <div class="am-panel-hd"><a href="<?php echo site_url('?news=technical'); ?>">技术展示</a><span class="am-icon-plus am-fr"></span></div>
		  <div class="am-panel-bd">
			<div data-am-widget="slider" class="am-slider am-slider-c2" data-am-slider='{&quot;controlNav&quot;:true}'>
				<ul class="am-slides">
					<?php query_posts('news=technical&posts_per_page=5'); while ( have_posts() ) : the_post(); ?>
						<li>
							<a href="<?php the_permalink() ?>"><?php the_post_thumbnail('post-thumbnail-313-156'); ?></a>
							<div class="am-slider-desc"><?php the_title(); ?></div>
						</li>
					<?php endwhile; ?>
				</ul>
			</div>
		  </div>
		</div>
	</div>
</div>
<!-- 基础栏目结束 -->

<!-- 主页内容结束-->
